<div xmlns:th="http://www.w3.org/1999/xhtml"
	 class="progress progress-striped active" style="display: none">
	<div id="loading" class="bar" style="width: 40%;height: 5px;"></div>
</div>
<style>
	.nav_menu{
		position: relative;
	}

	.nav_menu .logo{
		position: absolute;
		line-height: 30px;
		padding-top:5px;
		padding-bottom: 5px;
		/*left: 100px;*/
	}
	.nav_menu .daohan{
		position: absolute;
		right: 0px;
		vertical-align: middle;
	}
</style>

<div xmlns:th="http://www.w3.org/1999/xhtml" class="container">
	<div class="nav_menu row">
		<div class="logo span3" style="display: none">
			<a href="./" class="webSite" style="color: #0ea466;font-size: 30px;"> <span class="first"></span><i style="font-size: 18px; color: #da4f49;">.<span class="end"></span> </i></a>
			<!--<h5 style="color: #666;">-->
				<i class="label label-important">免费短链</i>
			<!--</h5>-->
		</div>
		<div class="daohan span9">
			<a id="login" href="login.html">登录</a>
			<a id="my" href="my.html">我的</a>
			<!--<a href="/resetPassword.html">修改密码</a>-->
			<!--<a href="/apiKey.html">token</a>-->
			<a href="api.html">API文档</a>
		</div>
	</div>
</div>

<script src="config.js"></script>
<script src="res/lib/layer/layer.js"></script>
<script>
    var login = false
	$(function () {
        if(getCookie("token").length == 0){
            login = false;
        }else{
            login = true;
        }
        if(login){
            $("#login").hide();
            $("#my").html(getCookie('username'));
            $("#my").show();
        }else{
            $("#login").show();
            $("#my").html("登录");
            $("#my").hide();
        }

        if(location.href.indexOf('my.html' ) > -1
			|| location.href.indexOf('api.html' ) > -1
			|| location.href.indexOf('apiKey.html' ) > -1
			|| location.href.indexOf('config.html' ) > -1
            || location.href.indexOf('resetPassword.html' ) > -1){
            $(".logo").show();
            //$(".daohan").hide();
		}else{

		}

        $(".webSite .first").html(config.first);
        $(".webSite .end").html(config.end);
    })

</script>